<template>
  <div class="home-container">
    <!-- 主页背景与卡片容器 -->
    <div class="bg-container">
      <div class="bg-dot"></div>
      <div class="bg-dot dot-2"></div>
      <div class="bg-dot dot-3"></div>
    </div>

    <!-- 左侧主内容区域 -->
    <div class="main-content">
      <!-- 头部英雄区域 -->
      <div class="hero-section">
        <div class="hero-content">
          <h1 class="hero-title">糯米团子の博客</h1>
          <p class="hero-subtitle">分享技术与生活的点滴</p>
          <el-button type="primary" @click="goToLogin" class="hero-button">
            开始探索
            <i class="el-icon-right"></i>
          </el-button>
        </div>
        <div class="hero-decoration">
          <div class="decoration-circle"></div>
          <div class="decoration-circle circle-2"></div>
        </div>
      </div>

      <!-- 精选文章区域 -->
      <div class="featured-section">
        <h2 class="section-title">精选文章</h2>
        <div class="articles-container">
          <div
            class="article-card"
            v-for="article in featuredArticles"
            :key="article.id"
            @mouseenter="scaleCard(article.id)"
            @mouseleave="resetScale(article.id)"
            :style="{ '--scale': cardScale[article.id] || 1 }"
            @click="goToArticleDetail(article.id)"
            style="cursor: pointer;"
          >
            <div class="article-image-container">
              <img
                :src="
                  article.coverImage
                    ? `data:image/jpeg;base64,${article.coverImage}`
                    : 'https://picsum.photos/400/200'
                "
                alt="文章封面"
                class="article-image"
              />
              <div class="article-badge" v-if="article.isNew">NEW</div>
            </div>
            <div class="article-content">
              <h3 class="article-title">{{ article.title }}</h3>
              <p class="article-introduction">{{ article.introduction }}</p>
              <div class="article-meta">
                <span class="article-author">
                  <i class="el-icon-user"></i> {{ article.authorNickname || '未知作者' }}
                </span>
                <span class="article-date">
                  <i class="el-icon-date"></i>
                  {{ formatDate(article.publishTime) }}
                </span>
              </div>
              <div class="article-tags">
                <span
                  class="tag"
                  v-for="tag in article.tag.split(',')"
                  :key="tag"
                  >{{ tag }}</span
                >
              </div>
            </div>
          </div>
        </div>
        
        <!-- 分页控件 -->
        <div class="pagination-container">
          <el-pagination
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
            :current-page="currentPage"
            :page-sizes="[10, 15, 20]"
            :page-size="pageSize"
            layout="total, sizes, prev, pager, next, jumper"
            :total="totalArticles"
          ></el-pagination>
        </div>
      </div>

      <!-- 显示过滤后的文章 -->
      <div v-if="filteredArticles.length > 0">
        <h2>按归档筛选的文章</h2>
        <ul>
          <li v-for="article in filteredArticles" :key="article.id">
            <a @click="goToArticleDetail(article.id)">{{ article.title }}</a>
          </li>
        </ul>
      </div>
    </div>

    <!-- 右侧卡片栏 -->
    <div class="side-cards">
      <!-- 用户信息卡片 -->
      <div class="user-info-card" v-if="isLoggedIn">
        <div class="dot"></div>
        <div class="dot dot-small"></div>
        <img
          :src="
            user.avatar
              ? `data:image/jpeg;base64,${user.avatar}`
              : 'https://picsum.photos/200/200?random=4'
          "
          alt="用户头像"
          class="user-avatar"
        />
        <h3 class="user-name">{{ user.nickname }}</h3>
        <!-- 新增个人简介展示 -->
        <p class="user-intro">{{ userInfo.personalIntroduction }}</p>
        <p class="user-desc">{{ user.desc }}</p>
        <div class="user-stats">
          <span
            ><i class="el-icon-star-off"></i> 粉丝：{{ user.followerCount }}</span
          >
          <span><i class="el-icon-document"></i> 文章：{{ articleCount }}</span>
        </div>
        <div class="user-social">
          <i class="el-icon-message"></i>
          <i class="el-icon-share"></i>
          <i class="el-icon-link"></i>
        </div>
      </div>
      <div class="user-info-card" v-else>
        <p>需要登录才能查看用户信息</p>
        <el-button @click="goToLogin">登录</el-button>
      </div>

      <!-- 最新文章卡片 -->
      <div class="side-card latest-articles-card">
        <h3 class="card-title"><i class="el-icon-timer"></i> 最新文章</h3>
        <ul class="article-list">
          <li
            class="article-item"
            v-for="(article, index) in latestArticles.slice(0, 5)"
            :key="index"
            @mouseenter="highlightItem(index, 'latest')"
            @mouseleave="unhighlightItem(index, 'latest')"
            :class="{ highlighted: highlightedItems.latest[index] }"
            @click="goToArticleDetail(article.id)"
            style="cursor: pointer;"
          >
            <span class="article-index">{{ index + 1 }}.</span>
            <div class="article-info">
              <h4>{{ article.title }}</h4>
              <span>{{ formatDate(article.publishTime) }}</span>
            </div>
          </li>
        </ul>
      </div>

      <!-- 最热标签卡片 -->
      <div class="side-card hot-tags-card">
        <h3 class="card-title">
          <i class="el-icon-collection-tag"></i> 最热标签
        </h3>
        <div class="tag-cloud">
          <el-button
            v-for="tag in hotTags.slice(0, 15)"
            :key="tag.tag"
            :type="getTagType(tag.article_count)"
            :size="getTagSize(tag.article_count)"
            round
            @click="filterByTag(tag.tag)"
          >
            {{ tag.tag }} <span class="tag-count">({{ tag.article_count }})</span>
          </el-button>
        </div>
      </div>

      <!-- 最热文章卡片 -->
      <div class="side-card hot-articles-card">
        <h3 class="card-title"><i class="el-icon-document"></i> 最热文章</h3>
        <ul class="article-list">
          <li
            class="article-item"
            v-for="(article, index) in hotArticles.slice(0, 15)"
            :key="index"
            @mouseenter="highlightItem(index, 'hot')"
            @mouseleave="unhighlightItem(index, 'hot')"
            :class="{ highlighted: highlightedItems.hot[index] }"
            @click="goToArticleDetail(article.id)"
            style="cursor: pointer;"
          >
            <span class="article-index">{{ index + 1 }}.</span>
            <div class="article-info">
              <h4>{{ article.title }}</h4>
              <span><i class="el-icon-view"></i> {{ article.viewCount }}</span>
            </div>
          </li>
        </ul>
      </div>

      <!-- 文章归档卡片 -->
      <div class="side-card archive-card">
        <h3 class="card-title">
          <i class="el-icon-folder-opened"></i> 文章归档
        </h3>
        <el-timeline class="archive-timeline">
          <el-timeline-item
            v-for="archive in archives.slice(0, 10)"
            :key="archive.year"
            :timestamp="archive.year + '年'"
          >
            <div class="archive-months">
              <span
                class="archive-month"
                v-for="month in archive.months"
                :key="month"
                @click="filterByMonth(archive.year, month)"
              >
                {{ month }}
              </span>
            </div>
          </el-timeline-item>
        </el-timeline>
      </div>
    </div>
  </div>
</template>

<script>
import axios from "axios";

export default {
  components: {},
  name: "Home",
  data() {
    return {
      featuredArticles: [],
      user: {},
      userInfo: {}, // 新增用户信息对象
      articleCount: 0,
      latestArticles: [],
      hotTags: [],
      hotArticles: [],
      archives: [],
      cardScale: {},
      highlightedItems: {
        latest: {},
        hot: {},
      },
      isLoggedIn: false,
      filteredArticles: [],
      currentPage: 1,
      pageSize: 15,
      totalArticles: 0,
    };
  },
  mounted() {
    this.fetchData();
    this.checkLoginStatus();
  },
  methods: {
    formatDate(timestamp) {
      return new Date(timestamp).toLocaleDateString();
    },
    goToLogin() {
      this.$router.push("/login");
    },
    scaleCard(id) {
      this.$set(this.cardScale, id, 1.03);
    },
    resetScale(id) {
      this.$set(this.cardScale, id, 1);
    },
    getTagType(count) {
      return count > 50 ? "warning" : "primary";
    },
    getTagSize(count) {
      return count > 50 ? "small" : "mini";
    },
    highlightItem(index, type) {
      this.$set(this.highlightedItems[type], index, true);
    },
    unhighlightItem(index, type) {
      this.$set(this.highlightedItems[type], index, false);
    },
    filterByMonth(year, month) {
      const formattedMonth = String(month).replace("月", "").padStart(2, "0");
      const archiveType = `${year}-${formattedMonth}`;
      console.log(`Filter by ${archiveType}`);
      axios
        .get(`/article/archiveTypeWithoutPage/${archiveType}`)
        .then((response) => {
          if (response.data.code === 200) {
            this.filteredArticles = response.data.data;
          } else {
            console.error("按归档查询文章失败:", response.data.message);
          }
        })
        .catch((error) => {
          console.error("按归档查询文章失败", error);
        });
    },
    filterByTag(tag) {
      console.log(`Filter by tag: ${tag}`);
      axios
        .get(`/article/tagWithoutPage/${tag}`)
        .then((response) => {
          if (response.data.code === 200) {
            this.filteredArticles = response.data.data;
          } else {
            console.error("按标签查询文章失败:", response.data.message);
          }
        })
        .catch((error) => {
          console.error("按标签查询文章失败", error);
        });
    },
    async fetchData() {
      // 获取精选文章（使用最新文章接口）
      try {
        const response = await axios.get(`/article/latest`, {
          params: {
            pageNum: this.currentPage,
            pageSize: this.pageSize,
          },
        });
        if (response.data.code === 200) {
          this.featuredArticles = response.data.data.records;
          this.totalArticles = response.data.data.total;
          // 获取每篇文章作者的昵称
          for (const article of this.featuredArticles) {
            try {
              const userResponse = await axios.get(`/user/info/${article.userId}`);
              if (userResponse.data.code === 200) {
                const user = userResponse.data.data;
                article.authorNickname = user.nickname;
              }
            } catch (error) {
              console.error(`获取文章 ${article.id} 作者信息失败`, error);
            }
          }
        }
      } catch (error) {
        console.error("获取精选文章失败", error);
      }

      // 获取最新文章
      try {
        const latestResponse = await axios.get("/article/latestWithoutPage");
        if (latestResponse.data.code === 200) {
          this.latestArticles = latestResponse.data.data;
        }
      } catch (error) {
        console.error("获取最新文章失败", error);
      }

      // 获取最热标签
      try {
        const hotTagsResponse = await axios.get("/article/hotTagsWithoutPage");
        if (hotTagsResponse.data.code === 200) {
          this.hotTags = hotTagsResponse.data.data;
        }
      } catch (error) {
        console.error("获取最热标签失败", error);
      }

      // 获取最热文章
      try {
        const hotArticlesResponse = await axios.get("/article/hotArticlesWithoutPage");
        if (hotArticlesResponse.data.code === 200) {
          this.hotArticles = hotArticlesResponse.data.data;
        }
      } catch (error) {
        console.error("获取最热文章失败", error);
      }

      // 获取文章归档
      try {
        const archivesResponse = await axios.get("/article/archivesWithoutPage");
        if (archivesResponse.data.code === 200) {
          const archivesMap = new Map();
          archivesResponse.data.data.forEach((item) => {
            const [year, month] = item.archive_type.split("-");
            if (!archivesMap.has(year)) {
              archivesMap.set(year, { year, months: [] });
            }
            const archive = archivesMap.get(year);
            if (!archive.months.includes(month)) {
              archive.months.push(month);
            }
          });
          this.archives = Array.from(archivesMap.values());
        }
      } catch (error) {
        console.error("获取文章归档失败", error);
      }
    },
    checkLoginStatus() {
      axios
        .get("/user/info")
        .then((response) => {
          if (response.data.code === 200) {
            this.isLoggedIn = true;
            this.user = response.data.data;
            console.log("User Data:", this.user);

            // 获取个人简介
            axios
              .get(`/userInfo/get/${this.user.id}`)
              .then((userInfoResponse) => {
                if (userInfoResponse.data.code === 200) {
                  this.userInfo = userInfoResponse.data.data;
                }
              })
              .catch((userInfoError) => {
                console.error("获取个人简介失败", userInfoError);
              });

            // 获取文章数量
            axios
              .get(`/article/user/${this.user.id}`)
              .then((articleResponse) => {
                if (articleResponse.data.code === 200) {
                  this.articleCount = articleResponse.data.data.total;
                }
              })
              .catch((articleError) => {
                console.error("获取文章数量失败", articleError);
              });

            // 获取粉丝数量
            axios
              .get(`/follower/list/${this.user.id}`)
              .then((followerResponse) => {
                if (followerResponse.data.code === 200) {
                  this.user.followerCount = followerResponse.data.data.length;
                }
              })
              .catch((followerError) => {
                console.error("获取粉丝数量失败", followerError);
              });
          } else {
            this.isLoggedIn = false;
          }
        })
        .catch((error) => {
          console.error("检查登录状态失败", error);
        });
    },
    handleSizeChange(newSize) {
      this.pageSize = newSize;
      this.fetchData();
    },
    handleCurrentChange(newPage) {
      this.currentPage = newPage;
      this.fetchData();
    },
    goToArticleDetail(articleId) {
      this.$router.push(`/viewArticle/${articleId}`);
    }
  },
};
</script>

<style scoped>
/* 全局样式 */
.home-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  padding: 30px 40px;
  min-height: 100vh;
  background: transparent;
  position: relative;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 背景动态点缀 */
.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-dot {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb76b, #ff7c00);
  opacity: 0.1;
  animation: float 6s infinite ease-in-out;
  filter: blur(2px);
}

.dot-2 {
  right: 10%;
  bottom: 15%;
  width: 80px;
  height: 80px;
  animation-delay: -2s;
  animation-duration: 8s;
}

.dot-3 {
  left: 20%;
  top: 70%;
  width: 100px;
  height: 100px;
  animation-delay: -3s;
  animation-duration: 10s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

/* 左侧主内容 */
.main-content {
  width: 100%;
}

.hero-section {
  height: 400px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 2;
  padding: 0 20px;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  color: #303133;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-subtitle {
  font-size: 18px;
  color: #606266;
  margin-bottom: 30px;
}

.hero-button {
  border-radius: 24px;
  background: linear-gradient(135deg, #ffb76b, #ff7c00);
  border: none;
  height: 52px;
  font-size: 18px;
  padding: 0 40px;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(255, 183, 107, 0.3);
  color: white;
}

.hero-button:hover {
  background: linear-gradient(135deg, #ff9d34, #ff6a00);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 157, 52, 0.4);
}

.hero-button i {
  margin-left: 8px;
  transition: transform 0.3s;
}

.hero-button:hover i {
  transform: translateX(4px);
}

.hero-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.decoration-circle {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 183, 107, 0.05);
  right: -50px;
  bottom: -50px;
}

.circle-2 {
  width: 150px;
  height: 150px;
  background: rgba(255, 183, 107, 0.03);
  right: 100px;
  bottom: -30px;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  color: #303133;
  margin-bottom: 30px;
  position: relative;
  padding-left: 15px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  height: 20px;
  width: 5px;
  background: #ffb76b;
  border-radius: 3px;
}

/* 文章卡片 */
.articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.article-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s;
  transform: scale(var(--scale, 1));
  position: relative;
}

.article-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  transform: scale(var(--scale, 1.03));
}

.article-image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

.article-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff6b6b;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.article-content {
  padding: 20px;
}

.article-title {
  font-size: 18px;
  font-weight: bold;
  color: #303133;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-introduction {
  font-size: 14px;
  color: #606266;
  margin-bottom: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #909399;
  margin-bottom: 15px;
}

.article-meta i {
  margin-right: 5px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tags .tag {
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 183, 107, 0.1);
  font-size: 12px;
  color: #ff7c00;
}

/* 分页控件 */
.pagination-container {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* 右侧卡片栏 */
.side-cards {
  position: sticky;
  top: 60px;
  height: fit-content;
}

.side-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin-bottom: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.side-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  color: #303133;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f2f5;
  display: flex;
  align-items: center;
}

.card-title i {
  color: #ffb76b;
  margin-right: 10px;
  font-size: 20px;
}

/* 用户信息卡片 */
.user-info-card {
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}

.hero-section,
.side-card,
.article-card,
.user-info-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
}

.dot {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 30px;
  height: 30px;
  background: rgba(255, 183, 107, 0.1);
  border-radius: 50%;
}

.dot-small {
  width: 15px;
  height: 15px;
  right: 40px;
  bottom: 40px;
  background: rgba(255, 183, 107, 0.15);
}

.user-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 3px solid white;
  transition: transform 0.3s;
}

.user-avatar:hover {
  transform: rotate(10deg);
}

.user-name {
  font-size: 20px;
  font-weight: bold;
  color: #303133;
  margin-bottom: 5px;
}

.user-intro {
  font-size: 14px;
  color: #606266;
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.user-desc {
  font-size: 14px;
  color: #606266;
  margin-bottom: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.user-stats {
  color: #909399;
  font-size: 14px;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.user-stats i {
  margin-right: 5px;
}

.user-social {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.user-social i {
  color: #909399;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}

.user-social i:hover {
  color: #ffb76b;
  transform: scale(1.2);
}

/* 列表样式 */
.article-list {
  list-style: none;
  padding: 0;
}

.article-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed #f0f2f5;
  transition: all 0.3s;
}

.article-item:last-child {
  border-bottom: none;
}

.article-item.highlighted {
  background: rgba(255, 183, 107, 0.05);
  border-radius: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

.article-index {
  color: #ffb76b;
  font-weight: bold;
  min-width: 20px;
}

.article-info {
  flex: 1;
}

.article-info h4 {
  font-size: 14px;
  font-weight: normal;
  color: #303133;
  margin-bottom: 5px;
  line-height: 1.4;
  transition: color 0.3s;
}

.article-item.highlighted h4 {
  color: #ff7c00;
}

/* 标签云样式 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-count {
  margin-left: 5px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

/* 修改最热标签按钮颜色 */
.tag-cloud .el-button {
  background: linear-gradient(135deg, #ffb76b, #ff7c00);
  border: none;
  color: white;
}

.tag-cloud .el-button:hover {
  background: linear-gradient(135deg, #ff9d34, #ff6a00);
}

/* 文章归档样式 */
.archive-months {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-month {
  padding: 5px 10px;
  background: rgba(255, 183, 107, 0.1);
  color: #ff7c00;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.archive-month:hover {
  background: rgba(255, 183, 107, 0.2);
  transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .home-container {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .side-cards {
    position: static;
    width: 100%;
    margin-top: 40px;
  }
  .hero-section {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .articles-container {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .home-container {
    padding: 15px;
  }
  .hero-section {
    height: 250px;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-button {
    height: 44px;
    font-size: 16px;
    padding: 0 30px;
  }
}
</style>